<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.7.1.js"></script>
</head>
<body>

<div style="width: 98%; margin: 10px auto;">
	<ul class="tabs">
		<li><a href="#">新手礼包</a></li>
		<li><a href="#">首充礼包</a></li>
		<li><a href="#">神兵传奇</a></li>
		<li><a href="#">限时抢购</a></li>
		<li><a href="#">一次性充值</a></li>
		<li><a href="#">累计充值回馈</a></li>
		<li><a href="#">冲榜狂人</a></li>
		<li><a href="#">全身强化</a></li>
		<li><a href="#">全服第一人</a></li>
	</ul>
	
	<div class="panes">
	<!-- 新手礼包开始 -->
	<div class="tabDiv">
	
	<{if $act== 'carders'}>	
	<div>
		<table class="tb_main">
			<thead><tr><th>新手卡号管理</th></tr>
							<tr><td>ID</td><td>类型</td><td>卡号</td><td>有效期</td><td>生成时间</td><td>发送时间</td><td>状态</td><td>操作</td></tr>
			</thead>
			<tbody>
				<tr>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
				</tr>
			</tbody>
		</table>
	</div>
	<{else}>	
		<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>
			<tr>
				<td class="td_title">新手礼包卡号设置</td>
				<td class="td_input"><button type="button" onclick="window.location='?act=carders'">新手卡号管理</button></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="2"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<{/if}>	
	<!-- 新手礼包结束 -->
	
	<!-- 首充礼包开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

						<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
					 	<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="3"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 首充礼包结束 -->
	
	<!-- 神兵传奇开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[2][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[2][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="0">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[3][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[3][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="0">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[4][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[4][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="0">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="4"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 神兵传奇结束 -->
	
	<!-- 限时抢购开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[2][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[2][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="0">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[3][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[3][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="0">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[4][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[4][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="0">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="5"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 限时抢购开始 -->
	
	<!-- 一次性充值开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
							 <label>一次性充值金额大于等于</label><input type="text"  name="gifts[1][charge_num]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[2][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[2][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="0">
							 <label>一次性充值金额大于等于</label><input type="text"  name="gifts[2][charge_num]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[3][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[3][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="0">
							 <label>一次性充值金额大于等于</label><input type="text"  name="gifts[3][charge_num]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[4][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[4][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="0">
							 <label>一次性充值金额大于等于</label><input type="text"  name="gifts[4][charge_num]" value="" size="7">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="6"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 一次性充值结束 -->
	
	<!-- 累计充值开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
							 <label>累计充值达到</label><input type="text"  name="gifts[1][charge_num]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[2][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[2][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="0">
							 <label>累计充值达到</label><input type="text"  name="gifts[2][charge_num]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[3][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[3][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="0">
							 <label>累计充值达到</label><input type="text"  name="gifts[3][charge_num]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[4][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[4][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="0">
							 <label>累计充值达到</label><input type="text"  name="gifts[4][charge_num]" value="" size="7">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="7"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 累计充值结束 -->
	
	<!--冲榜狂人开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
							 <label>排行榜</label><input type="text"  name="gifts[1][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[2][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[2][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="0">
							 <label>排行榜</label><input type="text"  name="gifts[2][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[3][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[3][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="0">
							 <label>排行榜</label><input type="text"  name="gifts[3][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[4][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[4][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="0">
							 <label>排行榜</label><input type="text"  name="gifts[4][rank_type]" value="" size="7">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="1"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!--冲榜狂人排行榜结束 -->
	
	<!-- 首充全身强化开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="" value="0">
							 <label>全身强化达到</label><input type="text"  name="gifts[1][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[2][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[2][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[2][item][0][property]" class="" value="0">
							 <label>全身强化达到</label><input type="text"  name="gifts[2][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[3][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[3][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[3][item][0][property]" class="" value="0">
							 <label>全身强化达到</label><input type="text"  name="gifts[3][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[4][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[4][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[4][item][0][property]" class="" value="0">
							 <label>全身强化达到</label><input type="text"  name="gifts[4][rank_type]" value="" size="7">
						</li>
						<li>
							 <label>物品ID</label><input type="text" name="gifts[5][item][0][id]" class=""/>
							 <label>物品名称</label><input type="text" name="item_name" class=""/>
							 <label>物品数量</label><input type="text" name="gifts[5][item][0][num]" class="" size="5"/>
							 <label>绑定</label><input type="radio" name="gifts[5][item][0][property]" class="" value="1" checked="checked">
							 <label>非绑定</label><input type="radio" name="gifts[5][item][0][property]" class="" value="0">
							 <label>全身强化达到</label><input type="text"  name="gifts[5][rank_type]" value="" size="7">
						</li>
					</ul>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="8"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 首充全身强化结束 -->
	
	<!-- 全服第一人开始 -->
	<div class="tabDiv">
	<form action="?act=save" method="post"  id=""  name="actForm" class="actForm">
		<table class="tb_form">
				
			<tr><td class="td_title">游戏平台<span class="must-input">*</span></td>
				<td class="td_input" colspan="2">
				<select id="platform_id" name="platform_id[]">
				<{foreach from=$platformlist key=key item=value}>   
					<option value="<{$key}>"><{$value}></option>
				<{/foreach}>
				</select>	
				</td>
			</tr>
			<tr>
				<td class="td_title">服务器列表<span class="must-input">*</span></td>
				<td class="td_input" colspan="1">
				<{foreach from=$serverlist key=key item=value}>   
					<input name="server_id[]"   type="checkbox"  value="<{$key}>" />
					<label><{$value}></label>
				<{/foreach}>	
				</td>
			</tr>
			
			<tr>
				<td class="td_title">活动名称<span class="must-input">*</span></td>
				<td class="td_input"><input type="text" name="act_name" value=""/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动内容<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><textarea cols="50"  rows="10" id="content" name="content"></textarea></td>
			</tr>
			
			<tr>
				<td class="td_title">活动开始时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $start_date !=null}><{$start_date}><{/if}>" id="begin_time" name="begin_time" type="text" id="begin_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动领奖时间<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input value="<{if $award_time !=null}><{$award_time}><{/if}>" id="award_time" name="award_time" type="text" id="award_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			<tr>
				<td class="td_title">活动到期时间<span class="must-input">*</span></td>
				<td class="td_input"><input value="<{if $finish_date !=null}><{$finish_date}><{/if}>" name="end_time" type="text" id="end_time" size="50" class="Wdatetime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
			</tr>
			
			<tr>
				<td class="td_title">活动规则描述<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2"><input type="text" name="act_rule" value="" size="100"/></td>
			</tr>
			<tr>
				<td class="td_title">领奖方式<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<select name="get_way"><option value="手动领取">手动领取</option><option value="系统邮件发送">系统邮件发送</option><option value="激活码领取">激活码领取</option></select>
				</td>
			</tr>
			
			<tr>
				<td class="td_title">奖励星级<span class="must-input">*</span></td>
				<td class="td_input"><select name="award_star"><option value="1">1星级</option><option value="2">2星级</option><option value="3">3星级</option><option value="4">4星级</option><option value="5">5星级</option></select></td>
			</tr>

			<tr>
				<td class="td_title">礼包设置<span class="must-input">*</span></td>
				<td class="td_input"  colspan="2">
					<ul>
						<li class="rule-li">
							 <label>全服第一人</label>
							 <select name="gifts[1][type]">
							 	<option value="256">等级</option>
							 	<option value="257">战斗力</option>
							 	<option value="258">魅力值</option>
							 	<option value="259">第一个拥有12技能宠物</option>
							 	<option value="260">第一个拥有三国宠物</option>
							 	<option value="261">第一个帮派达到X级的帮主</option>
							 	<option value="263">全身套装</option>
							 </select>
							 <input type="text" name="gifts[1][value]" class=""/>
							 <ul>
								 <li class="item-li">
									 <label>物品ID</label><input type="text" name="gifts[1][item][0][id]" class="gift-item-id"/>
									 <label>物品名称</label><input type="text" name="gifts[1][item][0][name]" class="gift-item-name"/>
									 <label>物品数量</label><input type="text" name="gifts[1][item][0][num]" class="gift-item-num" size="5"/>
									 <label>绑定</label><input type="radio" name="gifts[1][item][0][property]" class="gift-item-bind" value="1" checked="checked">
									 <label>非绑定</label><input type="radio" name="gifts[1][item][0][property]" class="gift-item-unbind" value="1">
									 <button type="button" class="add-item-btn">增加物品</button>
								 </li>
							 </ul>
							 <button type="button" class="add-rule-btn">增加规则</button>
						</li>
					</ul>
					<script type="text/javascript">
						$(document).ready(function(){
							
							$('.add-rule-btn').live('click',function(){
								var rule = $(this).parent('li').clone(true);
								$(this).parent().parent().find('')
								$(this).parents('ul').append(rule);
								$(this).attr('class','del-rule-btn').text('删除');
							});

							$('.del-rule-btn').live('click',function(){
								$(this).parent().remove();
							});
							
							$('.add-item-btn').live('click',function(){
								var item = $(this).parent().clone(true);
								$(this).parent().after(item);
								$(this).parent().parent().find('.gift-item-id').each(function(i){
									$(this).attr('name','gifts['+i+'][item]['+i+'][id]');
								});
								$(this).parent().parent().find('.gift-item-name').each(function(i){
									$(this).attr('name','gifts['+i+'][item]['+i+'][name]');
								});
								$(this).parent().parent().find('.gift-item-num').each(function(i){
									$(this).attr('name','gifts['+i+'][item]['+i+'][num]');
								});
								$(this).parent().parent().find('.gift-item-bind').each(function(i){
										$(this).attr('name','gifts['+i+'][item]['+i+'][property]').attr('checked','checked');
								});
								$(this).parent().parent().find('.gift-item-unbind').each(function(i){
									$(this).attr('name','gifts['+i+'][item]['+i+'][property]');
								});
								
								$(this).attr('class','del-item-btn').text('删除');
							});

							$('.del-item-btn').live('click',function(){
								$(this).parent().remove();
							});
						});
					</script>
				</td>
			</tr>
			
			<tr><td colspan="10">
					<input type="submit" name="" class="submit-btn" value="提交"/>
					<input type="reset" name="" class="reset-btn" value="重置"/>
					<input type="hidden" name="activity_type" class="" value="9"/>
					<input type="hidden" name="" class="" value=""/>
					</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 全服第一人结束 -->
	
	</div>
</div>

<script type="text/javascript" src="../js/jquery.form.js"></script>
<script type="text/javascript" src="../js/jquery.tools.min.js"></script>
<script language="javascript" type="text/javascript" src="../js/datecontrols/WdatePicker.js"></script>
<script type="text/javascript">
$(function(){
	$(".tabs:first").tabs(".panes:first > div.tabDiv");

	//提交表单
	$('.submit-btn').click(function(){
		var options = { 
		    url:   'open_activity.php?act=save', 
		    resetForm:false,
		    success:    function(retcode) {
							    	if(retcode == 1) 
							    	{
								        alert('添加活动成功!'); 
								        window.location.href="open_activity_list.php";
							    	}
							    	else if(retcode==-1){
							    		alert('制定礼包领取规则前必须设定礼包物品！');
							    		return false;
							    	}
							    	else
							    	{
								    	alert('添加失败！');
								    	return false;
							    	}
		    } 
		}; 
		 
		$('.actForm').ajaxForm(options);
	});
});
</script>

</body>
</html>